package spring.lottery.dao.mapper;

import org.apache.ibatis.annotations.Mapper;
import spring.lottery.controller.param.ActivityUser;
import spring.lottery.controller.param.DrawPrizesData;
import spring.lottery.dao.dataObject.ActivityPrizeDO;
import spring.lottery.dao.dataObject.ActivityUserDO;
import spring.lottery.server.dto.ActivityUserDto;
import spring.lottery.server.enums.ActivityStatusEnum;

import java.util.List;

@Mapper
public interface ActivityUserMapper {

    void insert(ActivityUserDto ad);

    List<ActivityUser> getUsers(Integer activityId);

    List<ActivityUserDto> selectUsersById(Long activityId);

    List<ActivityUserDto> getUsersByAUIds(Long activityId, List<Long> winnerList);

    Integer updateStatus(DrawPrizesData param, List<Long> winners, ActivityStatusEnum status);

}
